var i = 0;
var t = 0;
var nlclass = "priest";
var nlclassPatch = "priest";

nltree[i] = "Discipline"; i++;
nltree[i] = "Holy"; i++;
nltree[i] = "Shadow"; i++;

i = 0;


nltalent[i] = ["Unbreakable Will"]; i++;
nltalent[i] = ["Twin Disciplines"]; i++;
nltalent[i] = ["Silent Resolve"]; i++;
nltalent[i] = ["Improved Inner Fire"]; i++;
nltalent[i] = ["Improved Power Word: Fortitude"]; i++;
nltalent[i] = ["Martyrdom"]; i++; 
nltalent[i] = ["Improved Power Word: Shield"]; i++;
nltalent[i] = ["Inner Focus"]; i++;
nltalent[i] = ["Meditation"]; i++;
nltalent[i] = ["Absolution"]; i++;
nltalent[i] = ["Mental Agility"]; i++;
nltalent[i] = ["Improved Mana Burn"]; i++;
nltalent[i] = ["Mental Strength"]; i++;
nltalent[i] = ["Divine Spirit"]; i++;
nltalent[i] = ["Improved Divine Spirit"]; i++;
nltalent[i] = ["Focused Power"]; i++;
nltalent[i] = ["Enlightenment"]; i++;
nltalent[i] = ["Focused Will"]; i++;
nltalent[i] = ["Power Infusion"]; i++;
nltalent[i] = ["Reflective Shield"]; i++;
nltalent[i] = ["Renewed Hope"]; i++;
nltalent[i] = ["Rapture"]; i++;
nltalent[i] = ["Aspiration"]; i++;
nltalent[i] = ["Divine Aegis"]; i++;
nltalent[i] = ["Pain Suppression"]; i++;
nltalent[i] = ["Grace"]; i++;
nltalent[i] = ["Borrowed Time"]; i++;
nltalent[i] = ["Penance"]; i++;

treeStartStop[t] = i -1;
t++;

//holy talents

nltalent[i] = ["Healing Focus"]; i++;
nltalent[i] = ["Improved Renew"]; i++;
nltalent[i] = ["Holy Specialization"]; i++;
nltalent[i] = ["Spell Warding"]; i++;
nltalent[i] = ["Divine Fury"]; i++;
nltalent[i] = ["Desperate Prayer"]; i++;
nltalent[i] = ["Blessed Recovery"]; i++;
nltalent[i] = ["Inspiration"]; i++;
nltalent[i] = ["Holy Reach"]; i++;
nltalent[i] = ["Improved Healing"]; i++;
nltalent[i] = ["Searing Light"]; i++;
nltalent[i] = ["Healing Prayers"]; i++;
nltalent[i] = ["Spirit of Redemption"]; i++;
nltalent[i] = ["Spiritual Guidance"]; i++;
nltalent[i] = ["Surge of Light"]; i++;
nltalent[i] = ["Spiritual Healing"]; i++;
nltalent[i] = ["Holy Concentration"]; i++;
nltalent[i] = ["Lightwell"]; i++;
nltalent[i] = ["Blessed Resilience"]; i++;
nltalent[i] = ["Empowered Healing"]; i++;
nltalent[i] = ["Serendipity"]; i++;
nltalent[i] = ["Improved Holy Concentration"]; i++;
nltalent[i] = ["Circle of Healing"]; i++;
nltalent[i] = ["Test of Faith"]; i++;
nltalent[i] = ["Divine Providence"]; i++;
nltalent[i] = ["Guardian Spirit"]; i++;
treeStartStop[t] = i -1;
t++;

//shadow talents

nltalent[i] = ["Spirit Tap"]; i++;
nltalent[i] = ["Improved Spirit Tap"]; i++;
nltalent[i] = ["Blackout"]; i++;
nltalent[i] = ["Shadow Affinity"]; i++;
nltalent[i] = ["Improved Shadow Word: Pain"]; i++;
nltalent[i] = ["Shadow Focus"]; i++;
nltalent[i] = ["Improved Psychic Scream"]; i++;
nltalent[i] = ["Improved Mind Blast"]; i++;
nltalent[i] = ["Mind Flay"]; i++;
nltalent[i] = ["Veiled Shadows"]; i++;
nltalent[i] = ["Shadow Reach"]; i++;
nltalent[i] = ["Shadow Weaving"]; i++;
nltalent[i] = ["Silence"]; i++;
nltalent[i] = ["Vampiric Embrace"]; i++;
nltalent[i] = ["Improved Vampiric Embrace"]; i++;
nltalent[i] = ["Focused Mind"]; i++;
nltalent[i] = ["Mind Melt"]; i++;
nltalent[i] = ["Darkness"]; i++;
nltalent[i] = ["Shadowform"]; i++;
nltalent[i] = ["Shadow Power"]; i++;
nltalent[i] = ["Improved Shadowform"]; i++;
nltalent[i] = ["Misery"]; i++;
nltalent[i] = ["Psychic Horror"]; i++;
nltalent[i] = ["Vampiric Touch"]; i++;
nltalent[i] = ["Pain and Suffering"]; i++;
nltalent[i] = ["Twisted Faith"]; i++;
nltalent[i] = ["Dispersion"]; i++;
jsLoaded=true;//needed for ajax script loading